/* Copyright (C) 2008 Robin Debreuil -- Released under the BSD License */

using System;
using System.Collections.Generic;
using System.CodeDom.Compiler;
using System.Text;

namespace SWF
{
	/*
	 StartSound
		Header		RECORDHEADER	Tag type = 15.
		SoundId		UI16			ID of sound character to play.
		SoundInfo	SOUNDINFO		Sound style information.
	 */


	public class StartSoundTag : ISwfTag, IControlTag
	{
		private TagType tagType = TagType.StartSound;
		public TagType TagType { get { return tagType; } }

		public uint SoundId;
        public SoundInfo SoundInfo;

		public StartSoundTag(SwfReader r)
        {
			SoundId = r.GetUI16();
            SoundInfo = new SoundInfo(r);
		}
	}
}
